package xyz.kail.demo.prometheus.boot.config;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;
import org.springframework.stereotype.Component;

/**
 * Created by kail on 2018/2/4.
 */
@Component
public class MyInterceptor implements MethodInterceptor {

    @Override
    public Object invoke(MethodInvocation methodInvocation) throws Throwable {

        System.out.println(methodInvocation.getMethod());

        return methodInvocation.proceed();
    }
}
